# coding:utf-8
from django.apps import AppConfig
import os

VERBOSE_APP_NAME = u"论坛栏目管理"


def get_current_app_name(_file):
    """
    获取app的名称
    :param _file:
    :return:
    """
    return os.path.split(os.path.dirname(_file))[-1]


class CategoriesConfig(AppConfig):
    name = get_current_app_name(__file__)
    verbose_name = VERBOSE_APP_NAME
